﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addCourse.aspx.cs" Inherits="admin_addCourse" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>新增课程</title>
    <link href="../../css/body.css" rel="stylesheet" type="text/css" />
    <link href="../../css/table.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .main
        {
            text-align: left;
            width: 400px;
            margin-left:50px;
            margin-top:30px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
    
        <table width="350px" class="tab" style="text-align: left" >
            <tr>
                <td width="100">
                    课程编号：</td>
                <td width="250">
                    <asp:TextBox ID="tb_courseId" runat="server" Width="100px" readonly="true"></asp:TextBox><font color="red">*自动生成</font>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="tb_courseId" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
           <tr>
                <td width="100">
                    课程类型：</td>
                <td width="250">
                    <asp:DropDownList ID="ddl_courseType" runat="server" >
                    </asp:DropDownList>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="ddl_courseType" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="100">课程名称</td>
                <td width="250">
                <asp:TextBox ID="tb_courseName" runat="server" Width="250px"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                        ControlToValidate="tb_courseName" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="100" >
                    课程简介：</td>
                <td width="250">
                    <asp:TextBox ID="tb_about" runat="server" Width="250px" Height="150px" 
                        TextMode="MultiLine"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="tb_about" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="100">
                    课时：</td>
                <td width="250">
                    <asp:TextBox ID="tb_courseHour" runat="server" Width="250px"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="tb_courseHour" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="100">
                    任课教师：</td>
                <td width="250">
                    <asp:DropDownList ID="ddl_teacherId" runat="server" >
                    </asp:DropDownList>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="ddl_teacherId" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="100">
                    售价￥：</td>
                <td width="250">
                    <asp:TextBox ID="tb_gold" runat="server" Width="250px"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ControlToValidate="tb_gold" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btn_ok" runat="server" onclick="btn_ok_Click" Text="增加" 
                        Width="60px" />
&nbsp;&nbsp;
                    <asp:Button ID="btn_res" runat="server" onclick="btn_res_Click" Text="重填" 
                        Width="60px" />
                    </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
